import service from '@/utils/request'

const CustomerApi = {
    listCustomer: function (data) {
        return service.get('customer/page', { params: data })
    },
    updateCustomerState: function (data) {
        return service.put('customer/updateCustomerState', data)
    },
    getCustomerInfo: function (data) {
        return service.get('customer', { params: data })
    },
    setIntegral: function (data) {
        return service.put('customer/updateHealthPoints', data)
    },
    //健康打卡记录
    healthUpRecord: function (data) {
        return service.get('healthUpRecord/page', { params: data })
    },
    //积分变动记录
    customerPointsRecord: function (data) {
        return service.get('customerPointsRecord/page', { params: data })
    },
    
}

export default CustomerApi